package com.maysham.tripod.dao;

import com.maysham.tripod.model.Role;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class RoleDao {
    @Resource
    private MongoTemplate template;

    public Role save(Role user) {
        return template.save(user);
    }
}
